package com.cxz.spring.v2.controller;

import com.cxz.spring.v2.annotation.CxzController;
import com.cxz.spring.v2.annotation.CxzRequestMapping;

import javax.servlet.http.HttpServletRequest;
import javax.servlet.http.HttpServletResponse;

/**
 * @author cxz
 * @version V1.0
 * @Date 2022/9/8 17:12
 * @desc
 */
@CxzController
public class IndexController {

    @CxzRequestMapping("/")
    public void index(HttpServletRequest request, HttpServletResponse response) {
       try {
           response.getWriter().write("欢迎来到首页v1");
       } catch (Exception e) {
           e.printStackTrace();
       }
    }
}
